import {INIT_TOKEN} from "../actionTypes/index"
let init_state = {
    oauth_token:""
}
export default (state=init_state,action)=>{
    let newState = JSON.parse(JSON.stringify(state));
    // debugger
    switch(action.type){
        case INIT_TOKEN:
            // console.log(state);
            // console.log(action);
            newState.oauth_token = action.payload.oauth_token
        break;
    }
    return newState;
}